﻿var newwin, titleVal, divBody;

function ShowPicture(title, imgs) {
    try {
        if (imgs == "") return;

        var imageList = new Array();
        imageList = imgs.split("#");

        if (imageList.length == 0) return;

        divBody = "";

        for (var i = 0; i < imageList.length; i++) {
            if (imageList[i] == "") continue;

            divBody += "<img alt='' src='" + imageList[i] + "' /><br /><br />";
        }

        if (divBody == "") return;

        newwin = window.open('/ShowPicture.html', '', '');
        titleVal = title;
        newwin.document.body.innerHTML = divBody;
    }
    catch (e) { }
}

function SetContent() {
    try {
        newwin.document.title = titleVal;
        newwin.document.body.innerHTML = divBody;
    } catch (e) { } finally { return false; }
}